<div id="view_item">
    
    <h2 id="page_title"><?php echo $this->module_details['name']; ?></h2>
      <?php echo form_open('/shop/add_to_cart/' .$item->id); ?>

    <h2><?php echo $item->name; ?></h2>
    
    <div id="item_description">
        <h3><?php echo lang('shop.item_description_title'); ?></h3>
        <?php echo $item->description; ?>
    </div>
    <div id="item_options">
        <h3><?php echo lang('shop.item_options_title'); ?></h3>
        <?php // Loop throw options
            foreach ($item_options->result() as $item_option) : 
        ?>
        <p>
            <label for="item_option"><?php echo $item_option->name; ?>:</label>
            <?php echo form_dropdown('item_options['.$item_option->id. ']', $options_values_array[$item_option->id]); ?>
        </p>
    
        <?php endforeach; ?>
    </div>
    <div id="item_price">
        <h3><?php echo lang('shop.item_price_label'); ?></h3>
        <?php echo lang('shop.currency').$item->price; ?>
    </div>
    <div id="add_to_cart">
        <input type="submit" id="add_to_cart_button" value="<?php echo lang('shop.cart_add_to_cart'); ?>" >
    </div>
    <div id="item_photos">

        <?php foreach($item_images as $item_image): ?>
        <a href="<?php echo site_url().'galleries/'.$gallery->slug.'/'.$item_image->id; ?>" >
            <img src="<?php echo site_url().'files/thumb/'.$item_image->thumbnail_id; ?>" alt="<?php echo $item->name; ?>" >
        </a>
        <?php endforeach; ?>

        <br clear="all">
        <a href="<?php echo site_url().'galleries/'.$gallery->slug; ?>" >
            <?php echo lang('shop.item_view_gallery_title'); ?>
        </a>
    </div>
        <?php echo form_close(); ?>
        
</div>